package com.iwhalecloud.bss.kite.cucc.service.attr.linkhandler;

import com.iwhalecloud.bss.kite.cucc.service.attr.LocalAttrHelper;
import com.iwhalecloud.bss.kite.cucc.service.attr.handler.IsIDCOutWordsAttrHandler;
import com.iwhalecloud.bss.kite.cucc.service.attr.handler.ModuleFeeAttrHander;
import com.iwhalecloud.bss.kite.listener.handler.attr.annotation.AttrHandler;
import com.iwhalecloud.bss.kite.listener.handler.attr.impl.AbstractAttrLinkageHandler;
import com.iwhalecloud.bss.kite.manager.inst.KiteAttr;
import com.iwhalecloud.bss.kite.manager.inst.KiteInst;
import com.iwhalecloud.bss.kite.service.attr.AttrData;
import org.springframework.stereotype.Service;

import java.util.Objects;

/**
 * @author kangchuang
 * 数达信息-个性标签属性联动处理
 * @date 2021/04/07
 */
@Service
@AttrHandler(ModuleFeeAttrHander.class)
public class ModuleFeeAttrLinkHandler extends AbstractAttrLinkageHandler<AttrData> {
    @Override
    public void handle(KiteAttr kiteAttr, KiteInst kiteInst, AttrData attrData) {
        /*//标签类型,
        KiteAttr enterPriseSelfPurchaseAttr = kiteInst.getAttr("200001033");
        if (Objects.nonNull(enterPriseSelfPurchaseAttr)) {
            //如果是个性标签，模型费展示且必填
            if ("100000732".equals(enterPriseSelfPurchaseAttr.getValue())) {
                LocalAttrHelper.showAndNotNull(kiteInst, "200001034");
            }else {
                LocalAttrHelper.hideAndNullable(kiteInst,"200001034");
            }
        }*/
    }

    @Override
    public void handleStyle(KiteAttr kiteAttr, KiteInst kiteInst, AttrData attrData) {

    }
}
